package com.xy.tool.profile;

import java.util.Objects;

public class ProfileManager {

    public final static String PROFILE_DEV = "dev";

    private final ProfileConfig profileConfig;

    public ProfileManager(ProfileConfig profileConfig) {
        Objects.requireNonNull(profileConfig);
        this.profileConfig = profileConfig;
    }

    public boolean isTendingToDev() {
        return profileConfig.getTendingToDevProfiles().contains(profileConfig.getActiveProfile());
    }

    public boolean isTendingToProd() {
        return profileConfig.getTendingToProdProfiles().contains(profileConfig.getActiveProfile());
    }

}
